#!/bin/bash

make all

for i in {1..20}; do
	if test -f "$i.in"
	then
      echo "Running $i.in:"
      ./CyclicTest.exe <(./convex_sean.exe < "$i.in") <(./convex_test_fp.exe < "$i.in") \
      | (
         if grep -v "True"
         then exit 1
         fi
      )

      ./CyclicTest.exe <(./convex_sean.exe < "$i.in") <(./convex_test_ratio.exe < "$i.in") \
      | (
         if grep -v "True"
         then exit 1
         fi
      )

      ./CyclicTest.exe <(./convex_sean.exe < "$i.in") <(./convex_andrew.exe < "$i.in") \
      | (
         if grep -v "True"
         then exit 1
         fi
      )
      echo "Done"
	fi
done

